package org.kinglone.back.voice.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="t_voice")
public class WeixinVoice {

	private Integer id;
	private String serviceId;
	private String url;
	private Integer userId;//用户id
	private Date date;
	public WeixinVoice() {
	}
	public WeixinVoice(Integer id, String serviceId, String url, Integer userId,
			Date date) {
		super();
		this.id = id;
		this.serviceId = serviceId;
		this.url = url;
		this.userId = userId;
		this.date = date;
	}
	@Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getServiceId() {
		return serviceId;
	}
	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	
}
